import request from '@/utils/request'

// 查询请假涉及课程列表
export function listLeaveApplyCourse(query) {
  return request({
    url: '/leave/apply/course/list',
    method: 'get',
    params: query
  })
}

// 查询请假涉及课程详细
export function getLeaveApplyCourse(id) {
  return request({
    url: '/leave/apply/course/' + id,
    method: 'get'
  })
}

// 新增请假涉及课程
export function addLeaveApplyCourse(data) {
  return request({
    url: '/leave/apply/course',
    method: 'post',
    data: data
  })
}

// 修改请假涉及课程
export function updateLeaveApplyCourse(data) {
  return request({
    url: '/leave/apply/course',
    method: 'put',
    data: data
  })
}

// 删除请假涉及课程
export function delLeaveApplyCourse(id) {
  return request({
    url: '/leave/apply/course/' + id,
    method: 'delete'
  })
}

// 导出请假涉及课程
export function exportLeaveApplyCourse(query) {
  return request({
    url: '/leave/apply/course/export',
    method: 'get',
    params: query
  })
}